<?php

include('./config/config.php');

// master.php contains functions and initilizations common to all pages.
global $db, $not_keywords,$smarty;
session_start();

// Connect to the MySQL database using values from config.php.
$db = new mysqli($mysql_params['host'], $mysql_params['user'], $mysql_params['pass'], $mysql_params['db']);
$db->autocommit(TRUE);

// Words that are not keywords.
$not_keywords = array('a', 'an', 'the', 'this', 'these', 'there', 'that', 'here', 'do', 'does', 'is', 'was', 'will', 'won\'t', 'doesn\t', 'can', 'cannot', 'can\'t', 'not', 'of');

//smarty
include("/usr/local/lib/php/Smarty/Smarty.class.php");
$smarty = new Smarty();
$smarty->template_dir = "./smarty/templates";
$smarty->compile_dir = "./smarty/templates_c";
$smarty->cache_dir = "./smarty/cache";
$smarty->config_dir = "./smarty/configs";
?>
